import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import SlideVerify from 'vue-monoplasty-slide-verify';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import '../public/stylesheets/element-variables.scss'
import animated from 'animate.css' 

Vue.use(animated)
Vue.use(SlideVerify);
Vue.use(ElementUI);

axios.interceptors.request.use(function(config){
  config.headers.token = localStorage.getItem('token');
  return config;
},function(error){
  return Promise.reject(error)
})

Vue.prototype.$axios = axios;
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
